// ALEventSink.h: interface for the CALEventSink class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_ALEVENTSINK_H__C4BBF333_161B_4A5B_9D00_99B18D846E00__INCLUDED_)
#define AFX_ALEVENTSINK_H__C4BBF333_161B_4A5B_9D00_99B18D846E00__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include <atlbase.h>
#include <Wbemidl.h>
class CALEventSink : public IWbemObjectSink  
{
    //UINT 
	LONG m_lRef;

	//CWnd* m_pWnd;

public:
    CALEventSink()/*CWnd* pWnd) : m_pWnd( pWnd ) */{ m_lRef = 1; }
   ~CALEventSink() { }

    //
    // IUnknown members
    //
    STDMETHODIMP         QueryInterface(REFIID, LPVOID *);
    STDMETHODIMP_(ULONG) AddRef(void);
    STDMETHODIMP_(ULONG) Release(void);

    virtual /* [id] */ HRESULT STDMETHODCALLTYPE Indicate(
            /* [in] */ long lObjectCount,
            /* [size_is][in] */ IWbemClassObject __RPC_FAR *__RPC_FAR *ppObjArray
            );

    virtual /* [id] */ HRESULT STDMETHODCALLTYPE SetStatus(
            /* [in] */ long lFlags,
            /* [in] */ HRESULT hResult,
            /* [in] */ BSTR strParam,
            /* [in] */ IWbemClassObject __RPC_FAR *pObjParam
            );
};




#endif // !defined(AFX_ALEVENTSINK_H__C4BBF333_161B_4A5B_9D00_99B18D846E00__INCLUDED_)
